package com.cskaoyan.chapter0503.c050301;

import com.cskaoyan.chapter0502.c050205.Manager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.function.Consumer;

/**
 * @Author:WalterChan
 * @Decription:Test
 * @Date Created in 2024-06-02-19:42
 */
public class Test {
    public static void main(String[] args) {
        BigDecimal manager1 = BigDecimal.ONE;
        BigDecimal manager2 = BigDecimal.ONE;
        BigDecimal manager3 = BigDecimal.ONE;

        ArrayList<BigDecimal> list = new ArrayList<>();
        list.ensureCapacity(1);
        list.add(manager1);
        list.add(manager2);
        list.add(manager3);
        BigDecimal[] arry = new BigDecimal[list.size()];
        list.toArray(arry);




        System.out.println(list.size());
        list.forEach(manager -> System.out.println(manager));

    }
}
